package com.juyu.miliao.api.rabbitMQ;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author xuanqicheng
 */
@Component
public class RobotMessageMq {

    @Autowired
    private AmqpTemplate amqpTemplate;

    public void stopRobotMessageMq(String message){
        amqpTemplate.convertAndSend("miliao.robot.stop.exchange",
                "queue.undrable.miliao.robot.stop.register",message);
    }
}
